<?php
//$name = $_POST['name'];
//$email = $_POST['email'];
$message = $_POST['message'];
$agt = $_POST['agt'];
$address = $_POST['pageaddress'];
$ip=$_SERVER['REMOTE_ADDR'];

$message=
"
<style type='text/css'>
td{
	padding:2px 5px 2px 5px;
}
</style>
<p style='text-align:center; font-size:16px;'><strong>Application Form technical error report</strong></p>
<table border='1' align='center' bordercolor='#000000' cellpadding='0' cellspacing='0'>
<tr>
	<td width='200'><strong>Error Report:</strong></td>
	<td>".$message."</td>
</tr>
<tr>
	<td><strong>User-Agents:</strong></td>
	<td>".$agt."</td>
</tr>
<tr>
	<td><strong>URL:</strong></td>
	<td>".$address."</td>
</tr>
<tr>
	<td><strong>IP Address:</strong></td>
	<td>".$ip."</td>
</tr>
<tr>
	<td colspan='2' align='center'><a href='http://user-agent-string.info/?Fuas=".$agt."&test=9968&action=analyze' target='_blank'>User Agents Explaination(copy and paste User-Agents string to get explained)</a></td>
</tr>
</table>
";

$subject = 'Application Form technical error report';
$to = 'development6600@gmail.com';

if($message){
	
$headers  = 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
$headers .= 'From: TalktoUs - Maxcash<alert@maxcash.com.au> ' . "\r\n"; 
$send_contact=  mail($to,$subject,$message,$headers,"-f contact@maxcash.com.au"); 
//$send_contact =1;
  	if($send_contact){
			echo "success"; 
			
  		}else{
 			echo  "error";
 	   } 
	
		
	}
	
	

?>